package com.btrh.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 多数据库存储表
 * </p>
 *
 * @author zyy
 * @since 2020-04-27
 */
@TableName("a_db_url")
public class ADbUrl extends Model<ADbUrl> {

    private static final long serialVersionUID = 1L;

    /**
     *  主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 数据库名称
     */
    @TableField("dbName")
    private String dbName;

    /**
     * 数据库地址
     */
    private String ip;

    /**
     * 数据库编码
     */
    private String code;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 组织机构ID
     */
    @TableField("organizeId")
    private String organizeId;

    /**
     * 组织机构名称
     */
    @TableField("organizeName")
    private String organizeName;

    /**
     * 前端系统端口
     */
    private String port;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getOrganizeId() {
        return organizeId;
    }

    public void setOrganizeId(String organizeId) {
        this.organizeId = organizeId;
    }

    public String getOrganizeName() {
        return organizeName;
    }

    public void setOrganizeName(String organizeName) {
        this.organizeName = organizeName;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ADbUrl{" +
        "id=" + id +
        ", dbName=" + dbName +
        ", ip=" + ip +
        ", code=" + code +
        ", username=" + username +
        ", password=" + password +
        ", organizeId=" + organizeId +
        ", organizeName=" + organizeName +
        ", port=" + port +
        "}";
    }
}
